//"use strict";
/*
	QuickPasswordsMobile
	created by Avinash Kundaliya and Axel Grude

	Version History
	0.1 - 06/11/2013
		Prototype
	
		


*/

var EXPORTED_SYMBOLS = ["QuickPasswordsMobile"];

QuickPasswordsMobile = {
  menuId : null,

  init : function (win) {
    this.menuId = this.loadMenu(win);
  },

  loadMenu : function (window) {
    //this.Util.logDebug("LoadMenu");
    return  window.NativeWindow.menu.add("Get Password", null,
      function() { QuickPasswordsMobile.showLogins(window); });
  },

  showLogins : function (window) {
    /** write some code to display logins */
    window.NativeWindow.toast.show("Password List", "short");
  },

  removeMenu : function (window) {
    if (this.menuId)
      window.NativeWindow.menu.remove(this.menuId);
  }

};
